<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		?>
		<?php
		include_once 'public/home/html/timeline.php';
		?>
		<script src="cust/js/showRecord.js"></script>
		<script src="public/js/cus_modal.js"></script>
	</head>
	<body>
		<input type="hidden" id="modal_title" value="<?php echo $title; ?>" />
		<div class="container" style="padding:20px 100px;">
			<div class="row">
			    <h2><?php if(count($record)==0) echo '当前暂无反馈操作记录' ?></h2>
			    <div class="timeline timeline-line-dotted">
			        <?php foreach ($record as $k => $v): ?>
			        <span class="timeline-label">
			            <span class="label label-primary"><?php echo date('Y-m-d',$k); ?></span>
			        </span>
			        <?php foreach ($v as $k1 => $v1): ?>
			        <div class="timeline-item">
			        	<div class="timeline-point timeline-point-success">
			                <i class="icon-ok"></i>
			            </div>	
			            <div class="timeline-event">
			                <div class="timeline-heading">
			                    <h5><b>操作人：<?php echo $v1['creator_char'] ?></b></h5>
			                </div>
			                <div class="timeline-body">
			                    <p>操作类型：<?php echo (new FeedBackRecordSource)->show($v1['source']) ?></p>
			                </div>
			                <?php if ($v1['admin_id']!=0): ?>
			                <div class="timeline-body">
			                    <p>目标用户：<?php echo $v1['admin_char'] ?></p>
			                </div>	
			                <?php endif ?>
			                <div class="timeline-footer">
			                    <p class="text-right"><?php echo date('Y-m-d H:i:s',$v1['created']); ?></p>
			                </div>
			            </div>
			        </div>  			
			        <?php endforeach; ?>
			        <?php endforeach; ?>        
			    </div>
			</div>
		</div>
		<span class="foot_span"></span>
	</body>
	<script>
		$(function(){
			$('html').animate({
				scrollTop:$('.foot_span').offset().top
			},500); 
		})
	</script>
	
</html>
